<!DOCTYPE html>


<html lang="zh-CN">


<head>
  <meta charset="utf-8" />
    
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>
    30 种提高工作效率的利器.md |  
  </title>
  <meta name="generator" content="hexo-theme-ayer">
  
  <link rel="shortcut icon" href="/favicon.ico" />
  
  
<link rel="stylesheet" href="/dist/main.css">

  
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/css/remixicon.min.css">

  
<link rel="stylesheet" href="/css/custom.css">

  
  
<script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>

  
  

  

</head>

</html>

<body>
  <div id="app">
    
      
    <main class="content on">
      <section class="outer">
  <article
  id="post-tips/30 种提高工作效率的利器"
  class="article article-type-post"
  itemscope
  itemprop="blogPost"
  data-scroll-reveal
>
  <div class="article-inner">
    
    <header class="article-header">
       
<h1 class="article-title sea-center" style="border-left:0" itemprop="name">
  30 种提高工作效率的利器.md
</h1>
 

    </header>
     
    <div class="article-meta">
      <a href="/2020/11/11/tips/30%20%E7%A7%8D%E6%8F%90%E9%AB%98%E5%B7%A5%E4%BD%9C%E6%95%88%E7%8E%87%E7%9A%84%E5%88%A9%E5%99%A8/" class="article-date">
  <time datetime="2020-11-10T16:00:00.000Z" itemprop="datePublished">2020-11-11</time>
</a> 
  <div class="article-category">
    <a class="article-category-link" href="/categories/tips/">tips</a>
  </div>
  
<div class="word_count">
    <span class="post-time">
        <span class="post-meta-item-icon">
            <i class="ri-quill-pen-line"></i>
            <span class="post-meta-item-text"> 字数统计:</span>
            <span class="post-count">1.8k</span>
        </span>
    </span>

    <span class="post-time">
        &nbsp; | &nbsp;
        <span class="post-meta-item-icon">
            <i class="ri-book-open-line"></i>
            <span class="post-meta-item-text"> 阅读时长≈</span>
            <span class="post-count">6 分钟</span>
        </span>
    </span>
</div>
 
    </div>
      
    <div class="tocbot"></div>




  
    <div class="article-entry" itemprop="articleBody">
       
  <h1 id="30-种提高工作效率的利器"><a href="#30-种提高工作效率的利器" class="headerlink" title="30 种提高工作效率的利器"></a>30 种提高工作效率的利器</h1><blockquote>
<p>工欲善其事必先利其器。</p>
<p>我一直都在不断挑选和优化自己的兵器，以追求着最高效率。</p>
<p>此篇分享下我的私家珍藏的各种神兵利器。如果有朋友能推荐更好的，那就不枉此篇。</p>
<p><strong>分为Windows软件和开发工具两类。</strong></p>
</blockquote>
<h2 id=""><a href="#" class="headerlink" title=""></a></h2><h2 id="1、windows软件"><a href="#1、windows软件" class="headerlink" title="1、windows软件"></a><strong>1、windows软件</strong></h2><ul>
<li><h3 id="快速启动：WOX"><a href="#快速启动：WOX" class="headerlink" title="快速启动：WOX"></a><strong>快速启动：WOX</strong></h3></li>
</ul>
<p>快速启动应用+文件搜索+各种实用插件（计算器、翻译、网页快速访问等）。我的最爱，没有它我几乎半残。一开始从用altrun 然后试过Listary ，发现WOX 后，最为顺手，效率提升100%。</p>
<ul>
<li><h3 id="搜索工具：everything"><a href="#搜索工具：everything" class="headerlink" title="搜索工具：everything"></a><strong>搜索工具：everything</strong></h3></li>
</ul>
<p>秒找电脑里的各种文件。与WOX完美集成。</p>
<ul>
<li><h3 id="下载：IDM"><a href="#下载：IDM" class="headerlink" title="下载：IDM"></a><strong>下载：IDM</strong></h3></li>
</ul>
<p>多线程下载HTTP类文件下载利器，杠杠的。Chrome 内的下载都托管给了IDM，可下载百度云离线文件，突破下载速度限制。</p>
<p>做不到的BT 下载，使用迅雷下载或者Aria2 来配合处理即可。</p>
<ul>
<li><h3 id="截图：snipaste"><a href="#截图：snipaste" class="headerlink" title="截图：snipaste"></a><strong>截图：snipaste</strong></h3></li>
</ul>
<p>开源、免费的国产截图神器。给我最大的感受是截图更方便，且比QQ截图工具清晰很多。</p>
<ul>
<li><h3 id="预览工具：QuickLook"><a href="#预览工具：QuickLook" class="headerlink" title="预览工具：QuickLook"></a><strong>预览工具：QuickLook</strong></h3></li>
</ul>
<p>按下空格即可快速预览文件，微软商店内的免费应用。</p>
<p>之前用的seer，发现QuickLook 后，果断抛弃。</p>
<ul>
<li><h3 id="剪切板工具：Ditto"><a href="#剪切板工具：Ditto" class="headerlink" title="剪切板工具：Ditto"></a><strong>剪切板工具：Ditto</strong></h3></li>
</ul>
<p>再也不用担心刚才复制的内容找不到了。</p>
<ul>
<li><h3 id="结构化笔记：workflowy"><a href="#结构化笔记：workflowy" class="headerlink" title="结构化笔记：workflowy"></a><strong>结构化笔记：workflowy</strong></h3></li>
</ul>
<p>Make lists,not war.我常用于记录工作中的各种待办事项。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585324.png" alt="img"></p>
<ul>
<li><h3 id="Markdown写作工具：Typora"><a href="#Markdown写作工具：Typora" class="headerlink" title="Markdown写作工具：Typora"></a><strong>Markdown写作工具：Typora</strong></h3></li>
</ul>
<p>最好用的Markdown写作工具，所见即所得。</p>
<ul>
<li><h3 id="贴图工具：PicGo"><a href="#贴图工具：PicGo" class="headerlink" title="贴图工具：PicGo"></a><strong>贴图工具：PicGo</strong></h3></li>
</ul>
<p>支持多种图床，功能强大。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585338.jpg" alt="img"></p>
<ul>
<li><h3 id="看图工具：2345看图王"><a href="#看图工具：2345看图王" class="headerlink" title="看图工具：2345看图王"></a><strong>看图工具：2345看图王</strong></h3></li>
</ul>
<p>虽然名字土鳖，国产软件，一贯的有流氓行为。但是看图是真好用，我能忍。233333.</p>
<ul>
<li><h3 id="压缩软件：BandZIP"><a href="#压缩软件：BandZIP" class="headerlink" title="压缩软件：BandZIP"></a><strong>压缩软件：BandZIP</strong></h3></li>
<li><h3 id="播放器：Splash"><a href="#播放器：Splash" class="headerlink" title="播放器：Splash"></a><strong>播放器：Splash</strong></h3></li>
<li><h3 id="录屏工具：LICEcap"><a href="#录屏工具：LICEcap" class="headerlink" title="录屏工具：LICEcap"></a><strong>录屏工具：LICEcap</strong></h3></li>
</ul>
<p>比GifCam更好用。</p>
<ul>
<li><h3 id="Chrome插件"><a href="#Chrome插件" class="headerlink" title="Chrome插件"></a><strong>Chrome插件</strong></h3></li>
</ul>
<ol>
<li><p>Surfingkeys</p>
<p>在Chrome上，可以摆脱掉烦人的鼠标了。Vimium 升级版，我的最爱。</p>
</li>
<li><p>Tampermonkey</p>
<p>一千个司机眼中有一千个油猴。</p>
<p>强大的脚本让你可以做很多很爽的事情。比如开车、百度网盘破解直接下载、VIP视频在线解析破解去广告等。</p>
</li>
<li><p>沙拉查词-网页划词翻译</p>
<p>全能网页划词翻译，开放源码、功能丰富、超多词典、清爽快速、支持个性化设置</p>
<p>详细信息删除。</p>
<p>找了很久才找到的划词翻译软件，而且双击Ctrl还可以弹出查询翻译页面。用起来很爽。</p>
</li>
<li><p>掘金</p>
<p>新标签页托管给掘金，快速获得专业内容。掘金已成为一种习惯。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585327.webp" alt="img"></p>
</li>
<li><p>Imagus</p>
<p>鼠标悬浮停留在图片上，自动弹出放大图片，不用再在新链接中打开看大图了。</p>
</li>
<li><p>oneTab</p>
<p>标签页打开太多的时候，占用内存而且怕关掉后回头找不到？oneTab完美解决这个问题。</p>
<p>主要是用来缩减窗口，保存浏览记录。</p>
<p>为了省内存？Chrome越来越吃内存？加内存条才是根本的解决办法。</p>
</li>
<li><p>AutoPagerize</p>
<p>专门需要Google、百度，点击下一页很烦。AutoPagerize让我不再需要点下一页。</p>
</li>
<li><p>谷歌访问助手</p>
<p>如果你只要访问个谷歌或者上谷歌商店的话，不需要突破围墙的话，装这个插件可以满足基本使用了。免费而且速度还行。</p>
<p>在我的酸酸乳被严打封锁期间，我是靠着这个插件熬下来的，且行且珍惜。良民万岁。</p>
</li>
<li><p>Proxy SwitchyOmega</p>
<p>HTTP、SOCKS5代理插件，轻松快捷地管理和切换多个代理设置。用过段时间，挺好用的。</p>
</li>
<li><p>LastPass</p>
<p>省掉很多记密码的烦恼。</p>
</li>
<li><p>Insight.io for Github</p>
<p>IDE like code intelligence and code search for GitHub by Insight.io.</p>
</li>
<li><p>Github内看代码更方便，带高亮、跳转。</p>
<p>GitZip for github</p>
<p>It can make the sub-directories and files of github repository as zip and download it.</p>
<p>不想Clone整个项目，只想下载单个文件或者单个文件夹时，用这个。</p>
</li>
<li><p>Clear Cache</p>
<p>一键清除缓存，可以少点很多步。</p>
</li>
<li><p>User-Agent Switcher for Chrome</p>
<p>Chrome可以转换为别的浏览器进行访问，如IE、Safari、360甚至iOS、 Android等移动浏览器，方便用户进行测试。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585336.webp" alt="img"></p>
</li>
<li><p>Adblock Plus</p>
<p>网页去广告，不用uBlock Origin 的原因是它太强力，有时候把我博客的评论部分都杀掉了。</p>
</li>
<li><p>微博图床</p>
<p>一键将页面中的图片上传到微博，微博是个好图床。我一般用微博图床来拿HTTPS图片。</p>
</li>
<li><p>扩展管理器（Extension Manager）</p>
<p>一键管理所有扩展，快速开启/禁用、批量闪电管理，智能排序，右键卸载、锁定、选项配置，角标提醒，大小布局随心配。快捷、简单、安全。</p>
<p>当插件越来越多的时候，就需要个插件管理器了。这个管理器很方便，颜值不错。</p>
</li>
<li><p>IDM Integration Module</p>
<p>接管Chrome下载，使用IDM下载。一般在安装IDM的时候会自动安装Chrome的扩展。</p>
</li>
<li><p>惠惠购物助手</p>
<p>每逢剁手节的时候，都要打开这个看看历史价。</p>
</li>
<li><p>有道云网页剪报</p>
<p>一键保存网页内容，保存到有道云笔记里，我有时候将这个作为类似书签使用。</p>
</li>
</ol>
<h2 id="2、开发相关"><a href="#2、开发相关" class="headerlink" title="2、开发相关"></a><strong>2、开发相关</strong></h2><ul>
<li><h3 id="IDE：IntelliJ-IDEA"><a href="#IDE：IntelliJ-IDEA" class="headerlink" title="IDE：IntelliJ IDEA"></a><strong>IDE：IntelliJ IDEA</strong></h3></li>
</ul>
<p>用了有些年头了，高效、顺滑。也是因为从IDEA开始，让我意识到工具的重要性，在折腾工具的这条路上越走越远。</p>
<ul>
<li><h3 id="IDEA插件私家珍藏"><a href="#IDEA插件私家珍藏" class="headerlink" title="IDEA插件私家珍藏"></a><strong>IDEA插件私家珍藏</strong></h3></li>
</ul>
<ol>
<li><p>JRebel for IntelliJ</p>
<p>热部署插件，Java WEB 开发必备，节省生命。</p>
</li>
<li><p>Custom Postfix Templates</p>
<p>我的最爱。可以自定义Postfix模板，千言万语，不如一图。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585328.gif" alt="img"></p>
</li>
<li><p>Lombok Plugin</p>
<p>使用注解自动生成代码，码奴解放者。</p>
</li>
<li><p>RestfulToolkit</p>
<p>Java WEB开发必备，再也不用全局搜索RequestMapping了。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585336.gif" alt="img"></p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585337.webp" alt="img"></p>
</li>
<li><p>Translation</p>
<p>翻译插件，很好用。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585329.png" alt="img"></p>
</li>
<li><p>Grep Console</p>
<p>高亮log不同级别日志，看日志的时候一目了然。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585327.webp" alt="img"></p>
</li>
<li><p>GenerateSerialVersionUID</p>
<p>Alt + Insert 生成serialVersionUID</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585173.gif" alt="img"></p>
</li>
<li><p>Git Flow Integration</p>
<p>Git Flow插件，与IDEA集成。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585325.webp" alt="img"></p>
<p><img src="http://iubest.gitee.io/pic/640-1601368016832.webp" alt="img"></p>
</li>
<li><p>GsonFormat</p>
<p>JSON报文 –&gt; Java POJO 快速转换。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585326.gif" alt="img"></p>
</li>
<li><p>Material Theme UI</p>
<p>UI主题，有三款配色，看个人喜好。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601368031841.webp" alt="img"></p>
</li>
<li><p>String Manipulation</p>
<p>字符串格式风格快捷转换：大小写、驼峰、连接串等。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585324.gif" alt="img"></p>
</li>
<li><p>Alibaba Java Coding Guidelines</p>
<p>阿里巴巴Java开发规约扫描插件。</p>
</li>
<li><p>FindBugs</p>
<p>找到代码中潜在的问题。</p>
</li>
<li><p>Rainbow Brackets</p>
<p>彩虹括号。自动给代码块内花括号和括号加色，让视野更加注意在代码上。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585338.webp" alt="img"></p>
</li>
<li><p>Maven Helper</p>
<p>Maven插件，安装后可查看依赖以及冲突，一目了然。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585326.webp" alt="img"></p>
</li>
</ol>
<ul>
<li><h3 id="文本编辑器：Sublime"><a href="#文本编辑器：Sublime" class="headerlink" title="文本编辑器：Sublime"></a><strong>文本编辑器：Sublime</strong></h3></li>
</ul>
<p>对比Atom，Sublime主要是打开速度更快，感觉更清爽。</p>
<ul>
<li><h3 id="数据库客户端：DataGrip"><a href="#数据库客户端：DataGrip" class="headerlink" title="数据库客户端：DataGrip"></a><strong>数据库客户端：DataGrip</strong></h3></li>
</ul>
<p>一个客户端全搞定主流数据库。不用再装Navicat、plsql了。</p>
<p>ps:DataGrip其实只是IDEA里一个集成功能，被单独抽离出来成了一个独立产品。</p>
<ul>
<li><h3 id="SSH客户端：MobaXterm"><a href="#SSH客户端：MobaXterm" class="headerlink" title="SSH客户端：MobaXterm"></a><strong>SSH客户端：MobaXterm</strong></h3></li>
</ul>
<p>集成SSH、SFTP、FTP等，一个全搞定。还可分屏等功能，好用。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585337.webp" alt="img"></p>
<ul>
<li><h3 id="终端工具：Cmder"><a href="#终端工具：Cmder" class="headerlink" title="终端工具：Cmder"></a><strong>终端工具：Cmder</strong></h3></li>
</ul>
<p>丢弃掉Windows自带cmd窗口吧。</p>
<p><img src="http://iubest.gitee.io/pic/640-1601007585328.webp" alt="img"></p>
<ul>
<li><h3 id="API工具：Postman"><a href="#API工具：Postman" class="headerlink" title="API工具：Postman"></a><strong>API工具：Postman</strong></h3></li>
</ul>
<p>强大的API调试、Http请求的工具 。可自动同步个人请求记录。</p>
 
      <!-- reward -->
      
      <div id="reword-out">
        <div id="reward-btn">
          打赏
        </div>
      </div>
      
    </div>
    

    <!-- copyright -->
    
    <div class="declare">
      <ul class="post-copyright">
        <li>
          <i class="ri-copyright-line"></i>
          <strong>版权声明： </strong>
          
          本博客所有文章除特别声明外，著作权归作者所有。转载请注明出处！
          
        </li>
      </ul>
    </div>
    
    <footer class="article-footer">
       
<div class="share-btn">
      <span class="share-sns share-outer">
        <i class="ri-share-forward-line"></i>
        分享
      </span>
      <div class="share-wrap">
        <i class="arrow"></i>
        <div class="share-icons">
          
          <a class="weibo share-sns" href="javascript:;" data-type="weibo">
            <i class="ri-weibo-fill"></i>
          </a>
          <a class="weixin share-sns wxFab" href="javascript:;" data-type="weixin">
            <i class="ri-wechat-fill"></i>
          </a>
          <a class="qq share-sns" href="javascript:;" data-type="qq">
            <i class="ri-qq-fill"></i>
          </a>
          <a class="douban share-sns" href="javascript:;" data-type="douban">
            <i class="ri-douban-line"></i>
          </a>
          <!-- <a class="qzone share-sns" href="javascript:;" data-type="qzone">
            <i class="icon icon-qzone"></i>
          </a> -->
          
          <a class="facebook share-sns" href="javascript:;" data-type="facebook">
            <i class="ri-facebook-circle-fill"></i>
          </a>
          <a class="twitter share-sns" href="javascript:;" data-type="twitter">
            <i class="ri-twitter-fill"></i>
          </a>
          <a class="google share-sns" href="javascript:;" data-type="google">
            <i class="ri-google-fill"></i>
          </a>
        </div>
      </div>
</div>

<div class="wx-share-modal">
    <a class="modal-close" href="javascript:;"><i class="ri-close-circle-line"></i></a>
    <p>扫一扫，分享到微信</p>
    <div class="wx-qrcode">
      <img src="//api.qrserver.com/v1/create-qr-code/?size=150x150&data=http://example.com/2020/11/11/tips/30%20%E7%A7%8D%E6%8F%90%E9%AB%98%E5%B7%A5%E4%BD%9C%E6%95%88%E7%8E%87%E7%9A%84%E5%88%A9%E5%99%A8/" alt="微信分享二维码">
    </div>
</div>

<div id="share-mask"></div>  
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/tips/" rel="tag">tips</a></li></ul>

    </footer>
  </div>

   
  <nav class="article-nav">
    
      <a href="/2020/11/11/tips/130%E4%B8%AA%E5%AE%9E%E7%94%A8%E7%9A%84%E7%BD%91%E7%AB%99/" class="article-nav-link">
        <strong class="article-nav-caption">上一篇</strong>
        <div class="article-nav-title">
          
            130个实用的网站.md
          
        </div>
      </a>
    
    
      <a href="/2020/11/11/tips/Java%20%E5%BA%94%E7%94%A8%E6%9C%80%E5%B8%B8%E8%A7%81%E7%9A%843%E4%B8%AA%E9%97%AE%E9%A2%98%E6%8E%92%E6%9F%A5%E6%80%9D%E8%B7%AF/" class="article-nav-link">
        <strong class="article-nav-caption">下一篇</strong>
        <div class="article-nav-title">Java 应用最常见的3个问题排查思路.md</div>
      </a>
    
  </nav>

   
<!-- valine评论 -->
<div id="vcomments-box">
  <div id="vcomments"></div>
</div>
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/valine@1.4.14/dist/Valine.min.js"></script>
<script>
  new Valine({
    el: "#vcomments",
    app_id: "",
    app_key: "",
    path: window.location.pathname,
    avatar: "monsterid",
    placeholder: "给我的文章加点评论吧~",
    recordIP: true,
  });
  const infoEle = document.querySelector("#vcomments .info");
  if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
    infoEle.childNodes.forEach(function (item) {
      item.parentNode.removeChild(item);
    });
  }
</script>
<style>
  #vcomments-box {
    padding: 5px 30px;
  }

  @media screen and (max-width: 800px) {
    #vcomments-box {
      padding: 5px 0px;
    }
  }

  #vcomments-box #vcomments {
    background-color: #fff;
  }

  .v .vlist .vcard .vh {
    padding-right: 20px;
  }

  .v .vlist .vcard {
    padding-left: 10px;
  }
</style>

 
     
</article>

</section>
      <footer class="footer">
  <div class="outer">
    <ul>
      <li>
        Copyrights &copy;
        2015-2020
        <i class="ri-heart-fill heart_icon"></i> TzWind
      </li>
    </ul>
    <ul>
      <li>
        
        
        
        由 <a href="https://hexo.io" target="_blank">Hexo</a> 强力驱动
        <span class="division">|</span>
        主题 - <a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>
        
      </li>
    </ul>
    <ul>
      <li>
        
        
        <span>
  <span><i class="ri-user-3-fill"></i>访问人数:<span id="busuanzi_value_site_uv"></span></s>
  <span class="division">|</span>
  <span><i class="ri-eye-fill"></i>浏览次数:<span id="busuanzi_value_page_pv"></span></span>
</span>
        
      </li>
    </ul>
    <ul>
      
    </ul>
    <ul>
      
    </ul>
    <ul>
      <li>
        <!-- cnzz统计 -->
        
        <script type="text/javascript" src='https://s9.cnzz.com/z_stat.php?id=1278069914&amp;web_id=1278069914'></script>
        
      </li>
    </ul>
  </div>
</footer>
      <div class="float_btns">
        <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>

<div class="todark" id="todark">
  <i class="ri-moon-line"></i>
</div>

      </div>
    </main>
    <aside class="sidebar on">
      <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/"><img src="/images/ayer-side.svg" alt="Hexo"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/archives">归档</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/categories">分类</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/tags">标签</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" target="_blank" rel="noopener" href="http://www.baidu.com">百度</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/friends">友链</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/2019/about">关于我</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      <a class="nav-item-link nav-item-search"  title="搜索">
        <i class="ri-search-line"></i>
      </a>
      
      
      <a class="nav-item-link" target="_blank" href="/atom.xml" title="RSS Feed">
        <i class="ri-rss-line"></i>
      </a>
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
    </aside>
    <script>
      if (window.matchMedia("(max-width: 768px)").matches) {
        document.querySelector('.content').classList.remove('on');
        document.querySelector('.sidebar').classList.remove('on');
      }
    </script>
    <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>请我喝杯咖啡吧~</p>
  <div class="reward-box">
    
    
  </div>
</div>
    
<script src="/js/jquery-2.0.3.min.js"></script>


<script src="/js/lazyload.min.js"></script>

<!-- Tocbot -->


<script src="/js/tocbot.min.js"></script>

<script>
  tocbot.init({
    tocSelector: '.tocbot',
    contentSelector: '.article-entry',
    headingSelector: 'h1, h2, h3, h4, h5, h6',
    hasInnerContainers: true,
    scrollSmooth: true,
    scrollContainer: 'main',
    positionFixedSelector: '.tocbot',
    positionFixedClass: 'is-position-fixed',
    fixedSidebarOffset: 'auto'
  });
</script>

<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>

<script src="/dist/main.js"></script>

<!-- ImageViewer -->

<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>

    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">

        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                <!--  Controls are self-explanatory. Order can be changed. -->

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css">
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"></script>

<script>
    function viewer_init() {
        let pswpElement = document.querySelectorAll('.pswp')[0];
        let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))

        $imgArr.forEach(($em, i) => {
            $em.onclick = () => {
                // slider展开状态
                // todo: 这样不好，后面改成状态
                if (document.querySelector('.left-col.show')) return
                let items = []
                $imgArr.forEach(($em2, i2) => {
                    let img = $em2.getAttribute('data-idx', i2)
                    let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
                    let title = $em2.getAttribute('alt')
                    // 获得原图尺寸
                    const image = new Image()
                    image.src = src
                    items.push({
                        src: src,
                        w: image.width || $em2.width,
                        h: image.height || $em2.height,
                        title: title
                    })
                })
                var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
                    index: parseInt(i)
                });
                gallery.init()
            }
        })
    }
    viewer_init()
</script>

<!-- MathJax -->

<!-- Katex -->

<!-- busuanzi  -->


<script src="/js/busuanzi-2.3.pure.min.js"></script>


<!-- ClickLove -->

<!-- ClickBoom1 -->

<!-- ClickBoom2 -->

<!-- CodeCopy -->


<link rel="stylesheet" href="/css/clipboard.css">

<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
<script>
  function wait(callback, seconds) {
    var timelag = null;
    timelag = window.setTimeout(callback, seconds);
  }
  !function (e, t, a) {
    var initCopyCode = function(){
      var copyHtml = '';
      copyHtml += '<button class="btn-copy" data-clipboard-snippet="">';
      copyHtml += '<i class="ri-file-copy-2-line"></i><span>COPY</span>';
      copyHtml += '</button>';
      $(".highlight .code pre").before(copyHtml);
      $(".article pre code").before(copyHtml);
      var clipboard = new ClipboardJS('.btn-copy', {
        target: function(trigger) {
          return trigger.nextElementSibling;
        }
      });
      clipboard.on('success', function(e) {
        let $btn = $(e.trigger);
        $btn.addClass('copied');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-checkbox-circle-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPIED';
        
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-checkbox-circle-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
      clipboard.on('error', function(e) {
        e.clearSelection();
        let $btn = $(e.trigger);
        $btn.addClass('copy-failed');
        let $icon = $($btn.find('i'));
        $icon.removeClass('ri-file-copy-2-line');
        $icon.addClass('ri-time-line');
        let $span = $($btn.find('span'));
        $span[0].innerText = 'COPY FAILED';
        
        wait(function () { // 等待两秒钟后恢复
          $icon.removeClass('ri-time-line');
          $icon.addClass('ri-file-copy-2-line');
          $span[0].innerText = 'COPY';
        }, 2000);
      });
    }
    initCopyCode();
  }(window, document);
</script>


<!-- CanvasBackground -->


    
  </div>
</body>

</html>